//https://www.yuque.com/braft-editor/be/lzwpnr#zrs7hr

import React, { PureComponent } from 'react';
import { connect } from 'dva';
import moment from 'moment';
import router from 'umi/router';
import styles from './SearchBox.less';
//import searchImg from '@/assets/search.png'
import searchImg from '@/assets/search.gif'
import {
    Input, 
    Card,
} from 'antd';

const { Search } = Input;

class SearchBox extends PureComponent {
	searchList = value => {
			router.push({
			  pathname: '/searchlist/searchfiles',
			  query: {
			    searchContent: value,
			  },
			});
	}
	
	render() {
		return (
			<Card className={styles.searchCard}>
				{/*<div>
					<img src={ searchImg } className={ styles.searchImage } alt="搜索标志" />
				</div>*/}
				<Search placeholder="请输入" size="large" className={ styles.searchBox } enterButton="搜索"  onSearch={this.searchList} />
			</Card>
		)
	}
	
}

export default SearchBox;



